package ua.kpi_java_training.tyshchenko.module2;

/**
 * Class contains methods, which generate random number
 */
public class RandomNumber extends AbstractRand {
    public int getDirection(int amountDirection) {
        return (int) ((Math.random() * amountDirection));
    }

    public int getStep(int lengthStep) {
        return (int) (Math.random() * lengthStep + 1);
    }

    public int getPosition(int length) {
        return (int) (Math.random() * length);
    }
}
